package com.book.service;

import com.book.entity.BookInfo;
import com.github.pagehelper.PageInfo;

import java.util.Date;
import java.util.List;

public interface BookInfoService {
    int changeBookInfoIsDeleted(BookInfo bookInfo) throws Exception;

    int updateBookInfo(BookInfo bookInfo) throws Exception;

    List<BookInfo> selectBookByName(String bookName) throws Exception;

    PageInfo<BookInfo> selectBookInfoByPage(Integer pageNum, Integer pageSize) throws Exception;

    List<BookInfo> selectBookInfoConditions(BookInfo bookInfo, Date endPublisherDate, Double endPrice) throws Exception;

    List<BookInfo> selectBookInfoByBookSaleCount() throws Exception;

    List<BookInfo> selectBookInfoByBookByPublisherDate() throws Exception;

    List<BookInfo> selectBookInfoByBookCollectionCount() throws Exception;
    
    //根据id查询书籍信息
    BookInfo selectBookInfoById(Integer bookId)  throws Exception;

    
    
}
